package com.moxi.mogublog.commons.feign.impl;

import com.moxi.mogublog.commons.feign.RedisFeignClient;
import com.moxi.mougblog.base.result.ResultCode;
import com.moxi.mougblog.base.result.ResultVO;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Set;

/**
 * RedisFeignClient 熔断实现类
 *
 * @author LiShuai
 * @date 2020/5/29 15:15
 */
@Component("redisFeignClient")
public class RedisFeignClientImpl implements RedisFeignClient {

    @Override
    public ResultVO<List> getRedisInfo() {
        return ResultVO.failed(ResultCode.ERROR_FEIGN);
    }

    @Override
    public ResultVO<String> set(String key, Object value) {
        return ResultVO.failed(ResultCode.ERROR_FEIGN);
    }

    @Override
    public ResultVO<String> setEx(String key, Object value, int expireSeconds) {
        return ResultVO.failed(ResultCode.ERROR_FEIGN);
    }

    @Override
    public ResultVO<String> get(String key) {
        return ResultVO.failed(ResultCode.ERROR_FEIGN);
    }

    @Override
    public ResultVO keys(String keyPrefix) {
        return ResultVO.failed(ResultCode.ERROR_FEIGN);
    }

    @Override
    public ResultVO delete(String key) {
        return ResultVO.failed(ResultCode.ERROR_FEIGN);
    }

    @Override
    public ResultVO delete(Set<String> keys) {
        return ResultVO.failed(ResultCode.ERROR_FEIGN);
    }

}
